<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{{ num1 }}
<hr>
{{ num2 }}
<hr>
{{ num3 }}
<hr>
<span>加法：</span>
{{ num1|add:num3 }}
<hr>
<span>减法：</span>
{{ num3|add:'-5' }}
<hr>
<span>乘法：</span>
{% widthratio num1 1 num2 %}
<hr>
<span>除法：</span>
{% widthratio num3 num1 1 %}
<hr>
<span>自定义过滤器减法</span>
{% load app01_filters %}
{{ num3|subtraction:num1 }}
<hr>
<span>自定义过滤器乘法</span>
{{ num3|multiplication:num2 }}
<hr>
<span>自定义过滤器除法</span>
{{ num3|division:num1 }}
<hr>
{% autoescape off %}
{{ 'www.baidu.com'|show_a:'百度' }}
{% endautoescape %}
</body>
</html>